package com.lifeng.mymq.service.impl;

import javax.annotation.Resource;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Service;

import com.lifeng.mymq.service.SendMsgService;
@Service
public class SimpleSendMsgServiceImpl implements SendMsgService{
	@Resource
	private RabbitTemplate rabbitTemplate;
	
	@Override
	public void send(String msg) {
		rabbitTemplate.convertAndSend(msg);
	}
	@Override
	public void send(String quen, String msg) {
		rabbitTemplate.convertAndSend(quen,msg);
	}

}
